<?php
require (dirname(__FILE__) . '/../app/init.php');

$act = isset($_GET['act']) ? $_GET['act'] : 'weixin';
if (empty($act))
{
        header( 'HTTP/1.1 404 Not Found' );
        die;
}

$st = isset($_GET['st']) ? $_GET['st'] : 'index';
if (empty($st))
{
        header( 'HTTP/1.1 404 Not Found' );
        die;
}

$tmpObjName = 'ctrl_' . $act;
if ( !class_exists( $tmpObjName ) )
{
        header( 'HTTP/1.1 404 Not Found' );
        die;
}
if(method_exists($tmpObjName,$st)) $tmpObjName::$st();